package com.gitee.kenewstar.migration.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.kenewstar.migration.constants.Const;
import com.gitee.kenewstar.migration.core.MigrationCode;
import com.gitee.kenewstar.migration.core.MigrationTenantId;
import lombok.Data;

/**
 * @author kenewstar
 */
@Data
@TableName(value = "iam_menu", schema = Const.HZERO_PLATFORM)
public class Menu {

    @TableId(type = IdType.AUTO)
    private Long id;
    @MigrationCode
    private String code;
    private String name;
    private String hQuickIndex;
    private String fdLevel;
    private Long parentId;
    private String type;
    private Long sort;
    private Integer isDefault;
    private String icon;
    private String route;
    private Integer hCustomFlag;
    @MigrationTenantId
    private Long hTenantId;
    private String hLevelPath;
    private Integer hVirtualFlag;
    private String hControllerType;
    private String hPermissionType;
    private String hDescription;
    private Integer hEnabledFlag;
    @TableField("CATEGORY")
    private String category;
    private String helpType;
    private String helpValue;

    @TableField(exist = false)
    private Boolean rootFlag;


}
